import request from '~/utils/request'

export default{
  // 查询全部讲师
  getList() {
    return request({
      url: '/api/edu/teacher/findAll',
      method: 'get'
    })
  },

  // 根据分页查询全部讲师
  getListByPage(current, size) {
    return request({
      url: `/api/edu/teacher/findAllByPage/${current}/${size}`,
      method: 'get'
    })
  },

  // 根据id查询讲师
  getById(id) {
    return request({
      url: `/api/edu/teacher/findById/${id}`,
      method: 'get'
    })
  },

  // 根据id查询讲师的课
  getCourseById(id) {
    return request({
      url: `/api/edu/teacher/findCourseById/${id}`,
      method: 'get'
    })
  }


}
